<template>
  <!-- 这条线解决子应用引起的外边距塌陷问题 -->
  <div class="h-1 w-full"></div>

  <!-- 路由渲染 -->
  <router-view />
</template>

<script setup lang="ts">
const router = useRouter()
// @ts-ignore
const props = window.$wujie?.props
const { path, query } = props
router.push({ path: path || '/', query })
</script>
